package org.baojie;


public class TestCache {


    /**
     public Object asyncOperator(String key){
     AsyncLoadingCache<String, Object> cache = Caffeine.newBuilder()
     .maximumSize(100)
     .expireAfterWrite(1, TimeUnit.MINUTES)
     .buildAsync(k -> setAsyncValue(key).get());

     return cache.get(key);
     }

     public CompletableFuture<Object> setAsyncValue(String key){
     return CompletableFuture.supplyAsync(() -> {
     return key + "value";
     });
     }
     */

}
